package com.example.xianji.activity;

import java.util.ArrayList;

import com.example.xianji.R;
import com.example.xianji.adapter.ZhiWei_LeiBie_Adapter;

import android.os.Bundle;
import android.app.Activity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.ListView;

public class Main_ZhiWei_LeibieActivity extends Activity implements OnClickListener {
    private ImageView zhiwei_leibie_back;
    private ListView zhiwei_leibie_listview;
    private ZhiWei_LeiBie_Adapter mZhiWei_LeiBie_Adapter;
    private ArrayList<Integer> data;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main__zhi_wei__leibie);
        zhiwei_leibie_back = (ImageView) findViewById(R.id.zhiwei_leibie_back);
        zhiwei_leibie_listview = (ListView) findViewById(R.id.zhiwei_leibie_listview);
        //	MyApplication.getInstance().addActivity(this);
        data = new ArrayList<Integer>();
        for (int i = 0; i < 6; i++) {
            data.add(i);
        }
        mZhiWei_LeiBie_Adapter = new ZhiWei_LeiBie_Adapter(Main_ZhiWei_LeibieActivity.this, data);
        zhiwei_leibie_listview.setAdapter(mZhiWei_LeiBie_Adapter);
        zhiwei_leibie_back.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        if (v.getId() == R.id.zhiwei_leibie_back) {
            this.finish();
        }
    }
}
